<%--
  Created by IntelliJ IDEA.
  User: HUAWEI
  Date: 2024/1/2
  Time: 14:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>管理员登录</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">

    <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>

    <style>
        body {
            background: url("${pageContext.request.contextPath}/images/adminLogin.jpg");
            background-size: cover;
        }
    </style>
</head>
<body>

<div class="container" style="margin-top: 60px">
    <div class="row">
        <div class="col"></div>
        <div class="col-5">
            <div class="shadow p-3 mb-5 bg-white rounded">
                <%--            <div class="shadow-none p-3 mb-5 bg-light rounded">--%>
                <%--                <div class="container">管 理 员 登 录</div>--%>
                <h3 style="color: red;text-align: center">管 理 员 注 册</h3>
                <form method="post" action="adminRegister">
                    <div class="form-group">
                        <p>
                            <label for="User" style="float: left">用户名</label><label
                                style="color:red;float: left">*</label>
                            <input type="text" class="form-control" id="User" name="admin"
                                   value="${not empty admin_register_req_user ? admin_register_req_user : ""}">
                            <span style="color: red;">${admin_register_user_info}</span>
                        </p>

                        <p>
                            <label for="password1" style="float: left">密 &nbsp;&nbsp;码</label><label
                                style="color:red;float: left">*</label>
                            <input type="text" class="form-control" id="password1" name="pwd"
                                   value="${not empty admin_register_req_pwd1 ? admin_register_req_pwd1 : ""}">
                            <span style="color: red;">${admin_register_pwd1_info}</span>
                        </p>

                        <p>
                            <label for="password2" style="float: left">密 &nbsp;&nbsp;码</label><label
                                style="color:red;float: left">*</label>
                            <input type="text" class="form-control" id="password2" name="pwd"
                                   value="${not empty admin_register_req_pwd2 ? admin_register_req_pwd2 : ""}">
                            <span style="color: red;">${admin_register_pwd2_info}</span>
                        </p>

                        <p>
                            <label for="tel" style="float: left">电话号码</label><label
                                style="color:red;float:left;">*</label>
                            <input type="text" class="form-control" id="tel" name="tel"
                                   value="${not empty admin_register_req_tel ? admin_register_req_tel:""}">
                            <span style="color: red;">${admin_register_tel_info}</span>
                        </p>

                        <p>
                        <div style="float: left">
                            <label for="code" style="float: left">验证码</label><label
                                style="color:red;float: left">*</label><br/>
                            <input type="text" class="form-control" id="code" style="width: 340px"
                                   name="code"
                                   value="${not empty admin_register_req_code ? admin_register_req_code:""}"><br/>
                        </div>
                        <span style="color: red;">${admin_register_code_info}</span>
                        <div style="float: left;margin-top: 35px">
                            <label id="label_code"><img src="${pageContext.request.contextPath}/code"
                                                        id="sr" alt="加载中..."></label>
                        </div>
                        </p>

                    </div>
                    <div style="margin-top: 110px">
                        <input type="submit" class="btn btn-primary btn-lg btn-block" value="注 册"><br/>

                    </div>

                </form>
            </div>
        </div>
        <div class="col"></div>
    </div>
</div>


</body>
</html>

